# the minimum version of CMake.
cmake_minimum_required(VERSION 3.4.1)
project(NDKStudy)

set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})

set(NAPI_HEADER
    napi/JsFunction.h
    napi/NapiHelper.h
    napi/NapiValueConverter.h
    napi/native_common.h)


set(NAPI_SOURCE
    napi/JsFunction.cpp
    napi/NapiHelper.cpp
    napi/NapiValueConverter.cpp)

include_directories(${NATIVERENDER_ROOT_PATH}
                    ${NATIVERENDER_ROOT_PATH}/include
                    ${NAPI_HEADER})

add_library(entry SHARED hello.cpp ${NAPI_SOURCE})
target_link_libraries(entry PUBLIC libace_napi.z.so libhilog_ndk.z.so)